package com.dongbo.recorder.screenrecord.bean;

import java.io.Serializable;


public class BaseModel<T> implements Serializable {

	private static final long serialVersionUID = 1L;
	private String message;
	private int statusCode;
	private boolean success;
	private T data;

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	@Override
	public String toString() {
		return "BaseModel{" +
				"message='" + message + '\'' +
				", statusCode=" + statusCode +
				", success=" + success +
				", data=" + (data!=null?data.toString():"null") +
				'}';
	}

}
